<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css"?>

<!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">

<window data-l10n-id="rtfScan-wizard"
		xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
		xmlns:html="http://www.w3.org/1999/xhtml"
		id="rtfscan-wizard-window"
		onload="Zotero_RTFScan.init()"
>
	<linkset>
		<html:link rel="localization" href="branding/brand.ftl" />
		<html:link rel="localization" href="zotero.ftl" />
	</linkset>
	
	<script>
		Services.scriptloader.loadSubScript("chrome://zotero/content/include.js", this);
		Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
	</script>
	
	<wizard id="rtfscan-wizard" class="rtfscan-wizard zotero-dialog-window">
		<wizardpage pageid="page-start" data-header-label-id="rtfScan-intro-page">
			<div>
				<span class="page-start-1" data-l10n-id="rtfScan-introPage-description" />
				<span class="example">{Smith, 2009}</span>
				<span class="example">Smith {2009}</span>
				<span class="example">{Smith et al., 2009}</span>
				<span class="example">{John Smith, 2009}</span>
				<span class="example">{Smith, 2009, 10-14}</span>
				<span class="example">{Smith, &quot;Title,&quot; 2009}</span>
				<span class="example">{Jones, 2005; Smith, 2009}</span>
				<span class="page-start-2" data-l10n-id="rtfScan-introPage-description2" />
			</div>
			<div class="file-inputs">
				<label control="input-path" class="file-input-label" data-l10n-id="rtfScan-input-file" />
				<div><html:input native="true" type="text" id="input-path" readonly="true"/></div>
				<button id="choose-input-file" data-l10n-id="rtfScan-choose-input-file" />
				
				<label control="output-path" class="file-input-label" data-l10n-id="rtfScan-output-file" />
				<div><html:input native="true" type="text" id="output-path" readonly="true"/></div>
				<button id="choose-output-file" data-l10n-id="rtfScan-choose-output-file" />
			</div>
		</wizardpage>
		<wizardpage pageid="scan-page" data-header-label-id="rtfScan-scan-page" >
			<p data-l10n-id="rtfScan-scanPage-description" />
			<html:progress id="scan-progress" />
		</wizardpage>
		<wizardpage class="citations-page" pageid="citations-page" data-header-label-id="rtfScan-citations-page">
			<p class="citations-page-description" data-l10n-id="rtfScan-citations-page-description" />
			<div class="table-container">
				<div id="tree" />
			</div>
		</wizardpage>
		<wizardpage pageid="style-page" data-header-label-id="rtfScan-style-page">
			<div class="style-selector-container">
				<style-configurator id="style-configurator" />
			</div>
		</wizardpage>
		<wizardpage pageid="format-page" data-header-label-id="rtfScan-format-page">
			<p data-l10n-id="rtfScan-format-page-description" />
			<html:progress id="format-progress" />
		</wizardpage>
		<wizardpage pageid="complete-page" data-header-label-id="rtfScan-complete-page">
			<p data-l10n-id="rtfScan-complete-page-description" />
		</wizardpage>
	</wizard>
	<script src="fileInterface.js" />
	<script src="rtfScan.js" />
</window>